import request from '@/utils/request'

export function listInbound(query) {
  return request({
    url: '/wms/inbound/list',
    method: 'get',
    params: query
  })
}

export function getInbound(id) {
  return request({
    url: '/wms/inbound/' + id,
    method: 'get'
  })
}

export function addInbound(data) {
  return request({
    url: '/wms/inbound',
    method: 'post',
    data: data
  })
}

export function updateInbound(data) {
  return request({
    url: '/wms/inbound',
    method: 'put',
    data: data
  })
}

export function delInbound(id) {
  return request({
    url: '/wms/inbound/' + id,
    method: 'delete'
  })
}

export function changeInboundStatus(data) {
  return request({
    url: '/wms/inbound/status',
    method: 'put',
    data: data
  })
}

